<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="http://java.fckeditor.net" prefix="FCK"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	</head>
	<body>
		<div class="upload_body_right" id="upload_body_right">
			<s:form id="add_book_form"  action="action_addBook.go" namespace="/control/book" method="post" 
					onsubmit="return FCKeditorOnComplete()">
					<s:hidden id="bookTypeId" name="book.parent.id"></s:hidden>
				<table width="750" border="0">
					<tr>
						<td width="100px;">
							收费类型：
						</td>
						<td>
							<s:radio value="0" list="#{0:'免费',1:'收费'}" listKey="key" listValue="value"
								name="book.type" onclick="bookSellType(this)"/>
								<font color="red">维护书籍版权模块尚未开放，选择收费无效</font>
						</td>
					</tr>
					<tr> 
						<td>书籍类别：</td>
						<td>
							<input type="text" readonly="readonly" name="book.parent.name" id="bookTypeName"></input>
							<font color="FF0000">*</font>
							<input type="button" value="选择类型" onclick="javaScript:opentTypeList()">
							<span class="check_book_name" id="check_book_type"></span>
						</td>
					</tr>
					<tr>
						<td>
							书籍名称：
						</td>
						<td>
							<s:textfield id="bookName" name="book.bookName" 
								onfocus="focusBookName()" onblur="blurBookName()" maxlength="50" />
							<font color="FF0000">*</font><span class="check_book_name"
								id="check_book_name"></span>
						</td>
					</tr>
					<tr id="book_price">
						<td>
							价&nbsp;&nbsp;&nbsp;&nbsp;格：
						</td>
						<td align="left">
							<input id="price" type="text" name="book.price" onfocus="focusPrice()"
								onblur="blurPrice()" maxlength="10" readonly="readonly" value="0.0"/>
							<font color="FF0000">*</font><span class="check_book_price"
								id="check_book_price"></span>
						</td>
					</tr>
					<tr>
						<td>
							书籍页数：
						</td>
						<td align="left" width="100%">
							<s:textfield id="page" name="book.page" onfocus="focusPage()"
								onblur="blurPage()" maxlength="10" />
							<font color="FF0000">*</font><span class="check_book_page"
								id="check_book_page"></span>
						</td>
					</tr>
					<tr>
						<td>
							作&nbsp;&nbsp;&nbsp;&nbsp;者：
						</td>
						<td align="left">
							<s:textfield id="author"  name="book.author"
								onfocus="focusAuthor()" onblur="blurAuthor()" maxlength="100" />
							<font color="FF0000">*</font><span class="check_book_author"
								id="check_book_author"></span>
						</td>
					</tr>
					<tr>
						<td>
							出&nbsp;版&nbsp;社：
						</td>
						<td align="left">
							<s:textfield name="book.print" />
						</td>
					</tr>
					<tr>
						<td>
							书籍ISBN：
						</td>
						<td align="left">
							<s:textfield name="book.isbn" />
						</td>
					</tr>
					<tr>
						<td>文件宝贝：</td>
						<td>
							<input readonly="readonly"  id="file_path" name="book.path"/>
							<input type="button" value="上传书籍文件" onclick="uploadBook()"/>
							<font color="FF0000">*</font>
							<span class="check_book_page" id="check_book_file"></span>
						</td>
					</tr>
				</table>
				<div style="text-align: left;">
					书籍LOGO:
					<img id="bookLogo" alt="LOGO" src="/image/book/bookLogo.png"
						width="80" height="80">
					<input id="uploadLogo" type="button" value="上传Logo"
						onclick="javascript:openFileUploadWindow()">
					<input id="src" type="text" name="book.logo" style="display: none">
					<input id="src_300" type="text" name="book.logo_300" style="display: none">
					<font color="FF0000">*</font>
					<span class="check_book_page" id="check_book_logo"></span>
				</div>
				<FCK:editor instanceName="HtmlEditor"   width="750" height="300">
					 <textarea name="book.description" id="book_description" style="display: none"></textarea>
				</FCK:editor>
				<span> <input type="button"   value="提交" onclick="formSubmit()"/>
					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <s:reset value="取 消" /> </span>
			</s:form>
		</div>
	</body>
</html>